import Api from "./request";

// 获取全部约骑接口
export const getRidingListApi = (params) => Api.get("/riding-events/admin", params);

// 更新约骑信息接口
export const putRidingApi = (data) => Api.put("/riding-events/admin", data);

// 删除约骑接口
export const deleteRidingApi = (data) =>
  Api.delete("/riding-events/" + data.id);

// 查看活动报名用户接口
export const getRidingApplyUserListApi = (params) =>
  Api.get(`/riding-events/${params.id}/applyList`);

  // 添加约骑接口
  export const postRiddingApi = (data) => Api.post("/riding-events", data);
